class CreateNovels < ActiveRecord::Migration
  def self.up
    create_table :novels do |t|
      t.column :title,:string
      t.column :summary,:text
      t.column :tags,:string #comma-separate
      t.column :user_id,:integer #create author
      t.column :fragment_number,:integer #Merge bat number
      t.column :linkrule,:integer,:default=>Novel::LINK_RULE_1 #1:Allow all user to link 2:Allow all user link, but author can decide which can be link to novels,3:Allow all to all user
      t.timestamps
    end
  end

  def self.down
    drop_table :novels
  end
end
